<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "company_info".
 *
 * @property int $id
 * @property string $name
 * @property string $address
 * @property string $code
 * @property string $code_img
 * @property int $status
 * @property int $created_at
 */
class CompanyInfo extends Base
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'company_info';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['status', 'created_at'], 'integer'],
            [['name', 'address', 'code', 'code_img'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'address' => 'Address',
            'code' => 'Code',
            'code_img' => 'Code Img',
            'status' => 'Status',
            'created_at' => 'Created At',
        ];
    }
}
